New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hologger-streamer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hologger-streamer

Base Class implementing Streamer API for Hologger

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

hologger-streamer

An abstract class implementing Hologger's streamer API.

Installation

$ npm install hologger-streamer

Log Levels

Mirror that of syslog, but reversing ordering:

  • 8 EMERGENCY system unusable
  • 7 ALERT immediate action required
  • 6 CRITICAL condition critical
  • 5 ERROR condition error
  • 4 WARNING condition warning
  • 3 NOTICE condition normal, but significant
  • 2 INFO a purely informational message
  • 1 DEBUG debugging information

Use

La libreria permite su invocacion de cuatro formas indistintamente:

  • hologger(3, {foo: "bar"}) => la mas completa
  • hologger("some custom message") => para mensajes sobre la marcha
  • hologger({foo: "bar"}) => igualmente sobre la marcha, pero con info estructurada
  • hologger(Error) => logueo de errores

En cualquier caso, se generara un codigo de error que, dependiendo del nivel de logueo tendra la siguiente apariencia.

  • emergency; // 8xxxxxxx
  • alert; // 7xxxxxxx
  • critical; // 6xxxxxxx
  • error; // 5xxxxxxx
  • warning; // 4xxxxxxx
  • notice; // 3xxxxxxx
  • info; // 2xxxxxxx
  • debug; // 1xxxxxxx

Caveats

A fin de facilitar la operativa interna del logger, y de ser capaz de operar de la forma mas abstracta posible en el mayor numero de casos posible, hologger produce la estandarizacion interna del nombre de un numero de contado de propiedades de la informacion que se le presenta a logueo, siendo estas:

  • error => err
  • request => req

License

MIT (see LICENSE file)

Keywords

FAQs

Package last updated on 16 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc